package kr.hkit.powerjava.chther22.work;

public class Department {
	@Override
	public String toString() {
		return String.format("Department [deptName=%s, floor=%s, depno=%s]",
				deptName, floor, depno);
	}
	public String getDeptName() {
		return deptName;
	}
	public void setDeptName(String deptName) {
		this.deptName = deptName;
	}
	public int getFloor() {
		return floor;
	}
	public void setFloor(int floor) {
		this.floor = floor;
	}
	public int getDepno() {
		return depno;
	}
	public void setDepno(int depno) {
		this.depno = depno;
	}
	public Department(String deptName, int floor, int depno) {
		this.deptName = deptName;
		this.floor = floor;
		this.depno = depno;
	}
	private String deptName;
	private int floor;
	private int depno;
}
